package com.example.demo.model;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties("dbtypes")
@Component
public class ListController {
    private String mysql;
    private String sqlserver;
    private String db2;

    public String getMysql() {
        return mysql;
    }

    public void setMysql(String mysql) {
        this.mysql = mysql;
    }

    public String getSqlserver() {
        return sqlserver;
    }

    public void setSqlserver(String sqlserver) {
        this.sqlserver = sqlserver;
    }

    public String getDb2() {
        return db2;
    }

    public void setDb2(String db2) {
        this.db2 = db2;
    }

    @Override
    public String toString() {
        return "ListController{" +
                "mysql='" + mysql + '\'' +
                ", sqlserver='" + sqlserver + '\'' +
                ", db2='" + db2 + '\'' +
                '}';
    }
}
